﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="CanDoo.Oil.WebHost.Login" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" type="text/css" href="/res/login/css/styles.css" />
    <title><%=SiteConfig.UserTitle + " | " + SiteConfig.SysTitle %></title>
    <script type="text/javascript" src="/res/login/js/jquery.js"></script>
    <script type="text/javascript" src="/res/login/js/scroll.js"></script>
    <script type="text/javascript">
        //点击切换验证码
        function f_refreshtype() {
            var Image1 = document.getElementById("img");
            if (Image1 != null) {
                Image1.src = Image1.src + "?";
            }
        }
    </script>
    <style type="text/css">
        /*ie6提示*/
        #ie6-warning {
            width: 100%;
            background: #ffffe1;
            padding: 5px 0;
            font-size: 12px;
        }

            #ie6-warning p {
                width: 960px;
                margin: 0 auto;
            }
    </style>
    <%--    <script type="text/javascript">
        $(document).ready(function () {
            $("body").iealert();
        });
    </script>--%>
</head>
<body>
    <!--[if lte IE 8]>
<div id="ie6-warning"><p>本页面采用HTML5+CSS3，您正在使用老版本 Internet Explorer ，在本页面的显示效果可能有差异。建议您升级到 <a href="http://www.microsoft.com/china/windows/internet-explorer/" target="_blank">新版Internet Explorer</a> 或以下浏览器：
    <br>
<a href="http://ie.sogou.com/" target="_ablank"><img src="/res/browser/06.jpg" border="0" width="40px" height="40px">搜狗浏览器</a> /
<a href="http://rj.baidu.com/soft/detail/14744.html?ald"  target="_ablank"><img src="/res/browser/01.png" border="0" width="40px" height="40px">Chrome</a> /
<a href="http://www.opera.com/download/"  target="_ablank"><img src="/res/browser/02.png" border="0" width="40px" height="40px">Opera</a> /
<a href="http://rj.baidu.com/soft/detail/12966.html?ald"  target="_ablank"><img src="/res/browser/03.png" border="0" width="40px" height="40px">Safari</a> /
<a href="http://www.firefox.com.cn/download/"  target="_ablank"><img src="/res/browser/04.png" border="0" width="40px" height="40px">Firefox</a> /
<a href="http://windows.microsoft.com/zh-cn/internet-explorer/download-ie"  target="_ablank"><img src="/res/browser/05.png" border="0" width="40px" height="40px">新版IE</a></p></div>

<![endif]-->
    <form id="form1" runat="server">
        <div class="tod_contain cblue">
            <div class="top_contain">
                <div class="head">
                    <div class="platname">
                        <img src="res/login/images/logo.png" /><h2><%= SiteConfig.SysTitle %></h2>
                    </div>
                </div>
            </div>
        </div>
        <div class="main_contain">
            <div class="main">
                <div class="mnews">
                    <div class="title">
                        <h2>最新动态</h2>
                    </div>
                    <div class="list">
                        <%
                            DB.KeepReading(() =>
                            {
                                string str = "<ul>\r\n";

                                var bList = BulletinContract.Entities.OrderByDescending(p => p.IsTop).ToList();

                                foreach (var m in bList)
                                {
                                    str += "<li>\r\n";
                                    if (m.IsTop)
                                        str += "<h2><a href=\"/ViewBulletin/Detail.aspx?Id=" + m.Id.ToString() + "\" target=\"_ablank\"><span>" + m.Name + "</span></a></h2>\r\n";
                                    else
                                        str += "<h2><a href=\"/ViewBulletin/Detail.aspx?Id=" + m.Id.ToString() + "\" target=\"_ablank\">" + m.Name + "</a></h2>\r\n";
                                    str += "<h3>（" + m.User.Name + "，" + string.Format("{0:yyyy-MM-dd}", m.CreateDate) + "）</h3>\r\n";
                                    str += "</li>\r\n";
                                }
                                str += "</ul>\r\n";
                                Response.Write(str);
                            });
                        %>
                    </div>
                    <div class="more">
                        <h2><a href="/ViewBulletin/List.aspx">更多&gt;&gt;</a></h2>
                    </div>
                </div>
                <div class="login">
                    <ul>
                        <li>
                            <div class="lbox">
                                <h2>账&nbsp;&nbsp;&nbsp;号</h2>
                                <h3>
                                    <asp:TextBox ID="Account_txt" runat="server" class="inputl"></asp:TextBox>
                                </h3>
                            </div>
                        </li>
                        <li>
                            <div class="lbox">
                                <h2>密&nbsp;&nbsp;&nbsp;码</h2>
                                <h3>
                                    <asp:TextBox ID="Password_txt" runat="server" class="inputl" TextMode="Password"></asp:TextBox></h3>
                            </div>
                        </li>
                        <li>
                            <div class="lbox">
                                <h2>验证码</h2>
                                <h4>
                                    <asp:TextBox ID="Code_txt" runat="server" MaxLength="5" class="inputc"></asp:TextBox></h4>
                                <h5>
                                    <img src="png.aspx?rd=<%=Guid.NewGuid().ToString("n")%>" id="img" onclick="f_refreshtype();" width="80" height="26" /></h5>
                                <h6>
                                    <asp:CheckBox runat="server" ID="RememberMe" Text="记住我" CssClass="" /></h6>
                            </div>
                        </li>
                        <li>
                            <asp:Button ID="Login_Btn" runat="server" class="btn_submit cblue" Text="登录" OnClick="Login_Btn_Click" /></li>
                        <li>
                            <div class="sbox">
                                <asp:Label ID="Label1" runat="server" Text=""></asp:Label>
                            </div>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="foot_contain">
            <div class="main">
                <h2><%= SiteConfig.Links %><br />
                    <%= SiteConfig.Copyright %></h2>
            </div>
        </div>
    </form>
</body>
</html>
